﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportE.aspx.cs" Inherits="ReportE" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
       <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
    <script type="text/javascript">
       
        function checkPeriod() {
            var StartTime = document.getElementById("tbStartTime");
            var EndTime = document.getElementById("tbEndTime");
            var reg = /^([1-9]\d{3})(0[1-9]|1[0-2])$/;

            if (StartTime.value!=""&&!reg.test(StartTime.value)) {
                alert("起始时间格式不正确,正确的格式形如：201206！")
                StartTime.focus();
                return false;
            }
            if (EndTime.value!=""&&!reg.test(EndTime.value)) {
                alert("结束时间格式不正确,正确的格式形如：201206！")
                EndTime.focus();
                return false;
            }
        }
  </script>
</head>
<body>
    <form id="form1" runat="server">
 

      <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center" >
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center"><span style="font-size:14px; font-weight:bold">培训需求人数=计划完成课程人数</span></td>
                       
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
        <tr bgcolor="#E7E7E7">
          <td height="24" colspan="5" background="../skin/images/tbg.gif"><div align="left" >
              时间段设置</div></td>
        </tr>
       <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
           <td align="left" >起始时间(例如：201206)：</td>
           <td align="left" >
              <asp:TextBox ID="tbStartTime" runat="server"></asp:TextBox>
             </td>
             <td align="left" class="style1">结束时间(例如：201207)：</td>
             <td align="left" >
                 <asp:TextBox ID="tbEndTime" runat="server"></asp:TextBox></td>
            <td> <asp:Button ID="btnViewReport" runat="server" Text="查看报表"  OnClientClick="return checkPeriod();false;"  onclick="btnViewReport_Click" /></td>
        </tr>
      </table>
        
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="600px" 
            Width="100%">
        </rsweb:ReportViewer>
     
    </form>
</body>
</html>
